//
//  WeatherForecastCell.m
//  DLTravels
//
//  Created by mac1012 on 2016/12/19.
//  Copyright © 2016年 DianlE. All rights reserved.
//

#import "WeatherForecastCell.h"

@implementation WeatherForecastCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.positionLabel = [UILabel new];
        self.temperatureLabel = [UILabel new];
        [self addSubview:self.positionLabel];
        [self addSubview:self.temperatureLabel];
        
        [self.positionLabel mas_makeConstraints:^(MASConstraintMaker *make) {
           
            make.left.equalTo(self).offset(0);
            make.right.equalTo(self.temperatureLabel.mas_left).offset(0);
            make.width.equalTo(self.temperatureLabel);
            make.height.mas_equalTo(100);
            
        }];
        self.positionLabel.textColor = [UIColor whiteColor];
        self.positionLabel.font = [UIFont systemFontOfSize:25.0];
        self.positionLabel.textAlignment = NSTextAlignmentCenter;
        
        
        
        [self.temperatureLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.positionLabel.mas_right).offset(0);
            make.right.equalTo(self).offset(0);
            make.width.equalTo(self.positionLabel);
            make.height.mas_equalTo(100);
        }];
        
        self.temperatureLabel.textColor = [UIColor whiteColor];
        self.temperatureLabel.font = [UIFont systemFontOfSize:40.0];
        self.temperatureLabel.textAlignment = NSTextAlignmentLeft;
        
        [self setBackgroundColor:[UIColor clearColor]];
        
        
        
    }
    return self;

}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


@end
